﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forum.Entity.Member;

namespace Forum.Entity.Post
{
    public partial class PostInfo
    {
        private MemberExInfo _memberInfo;
        public Func<int, MemberExInfo> GetMemberInfo;
        public MemberExInfo MemberInfo
        {
            get
            {
                if (_memberInfo == null)
                {
                    _memberInfo = GetMemberInfo(this.MemberID);
                }
                return _memberInfo;
            }
            set
            {
                _memberInfo = value;
            }
        }

        public int Floor
        {
            get;
            set;
        }
    }
}
